Skip to content

Install the same Solana CLI in every workflow, and drop the dead beta legs - #220

Open
mikemaccana wants to merge 1 commit into
mainfrom
claude/ci-solana-cli-4-3-2-all-workflows
Open

mikemaccana wants to merge 1 commit into
mainfrom
claude/ci-solana-cli-4-3-2-all-workflows

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

#217 moved anchor.yml and
anchor-v1.yml to Solana CLI 4.3.2 and left native.yml, pinocchio.yml, quasar.yml and
solana-asm.yml on 3.1.14, so the repository disagreed with itself about the toolchain that
builds the .so files. That was my omission. All six now install 4.3.2 — the Agave crate line
LiteSVM 0.18.2 holds the examples at after
#218 and
#219.

workflow before after
anchor.yml, anchor-v1.yml 4.3.2, GitHub release unchanged (comment fixes only)
native.yml, pinocchio.yml, quasar.yml, solana-asm.yml 3.1.14, setup-solana 4.3.2, GitHub release

Why the direct download rather than setup-solana: 4.3.2

Passing the version would have been one line per file, and the action would take it — I read its
source at v5.9: there is no version ceiling, and a bare 4.3.2 becomes
https://release.anza.xyz/v4.3.2/install.

But release.anza.xyz is the host with no usable artefact for parts of the 4.x line, which is why
#217 switched to the release asset in the first place. The GitHub asset is also a plain static URL
needing no API call, which is exactly what the deleted "can fail with 429" comments were working
around. heyAyushh/setup-solana was last tagged December 2024.

The 4.3.2 tarball ships solana, cargo-build-sbf, cargo-test-sbf and agave-install. All four
workflows need solana on PATH — each runs solana -V — and native/pinocchio build with
cargo build-sbf. solana-asm builds with sbpf build and quasar with quasar build; both keep
their own install steps untouched.

The beta legs tested nothing

native.yml, pinocchio.yml and solana-asm.yml each had Setup Solana Beta and
Build and Test with Beta, both continue-on-error: true. I checked before deleting them. From run
45729216837, job
139606787972:

##[end-action id=__heyAyushh_setup-solana_2.__run_3;outcome=failure;conclusion=failure;duration_ms=14]
##[group]Run source build_and_test.sh
  source build_and_test.sh
  solana -V
  rustc -V
  process_projects "beta"
/home/runner/work/_temp/7cc2784f-c3b9-4820-9ba4-893e11dec469.sh: line 2: solana: command not found
##[error]Process completed with exit code 127

Three things there:

  1. setup-solana v5.9 does not resolve the beta channel, so the install fails in 14 ms.
  2. It clears the stable install on its way out, so solana is then gone entirely.
  3. The next step dies on line 2 (solana -V, exit 127) and never reaches process_projects.
    No project was built or tested.

continue-on-error reports a failed step as success, which is why this looked green on every run —
the step durations give it away: a 52s stable leg followed by a beta leg that finishes in under a
second.

Removed rather than repaired, because process_projects uses its $solana_version argument only as
a log label. Both legs run the identical project list with the identical commands, so the beta leg
could never have tested anything the stable leg did not — the most a working version could do is
re-run the same suites under a different CLI.

Comment fixes

anchor.yml and anchor-v1.yml keep their install step and lose two claims this work invalidated:

solana-asm.yml's sbpf note loses the same stale 0.18.1.

Testing

CI-only, so CI is the test. Each file parses as YAML (actionlint is not available in the
environment I used). Each of the four workflows lists .github/workflows/<name>.yml in its own
paths-filter, so editing the file triggers its own run — please check all four actually ran rather
than taking the summary's word for it.

What to look for:

  • Install Solana CLI succeeds, and solana -V in the next step prints 4.3.2, not 3.1.14;
  • every build-and-test-group-* job green — that is the real test, since those jobs build with
    cargo build-sbf / sbpf build / quasar build against the newly installed CLI;
  • no beta step anywhere.

Audit:

grep -rn 'solana-cli-version\|3\.1\.14' .github/workflows/   # no hits

(setup-solana still appears in prose, in the comments that explain what the workflows used to do.)

Left alone deliberately

The process_projects "stable" label and the "Build and Test with Stable" step names. Nothing
contrasts with them now, but renaming reaches into the heredoc'd build script in four files for no
behavioural gain. Worth a follow-up if you want the naming tidy.


Generated by Claude Code

… legs

#217 moved anchor.yml and anchor-v1.yml to Solana CLI 4.3.2 and left
native, pinocchio, quasar and solana-asm on 3.1.14, so the repository
disagreed with itself about the toolchain that builds the .so files. All
six now install 4.3.2, which is the Agave crate line LiteSVM 0.18.2
holds the examples at.

The four move to the same direct download from the GitHub release that
#217 already proved green, rather than passing 4.3.2 to
heyAyushh/setup-solana. The action would take the version - it has no
ceiling, and turns a bare `4.3.2` into
`https://release.anza.xyz/v4.3.2/install` - but that is the host with no
usable artefact for parts of the 4.x line, and the release asset is a
plain static URL that needs no GitHub API call, which is what the
deleted "can fail with 429" comments were working around.

The beta legs in native, pinocchio and solana-asm tested nothing, and
had not for some time. From run 45729216837, job 139606787972:

  end-action id=__heyAyushh_setup-solana_2.__run_3;outcome=failure;duration_ms=14
  Run source build_and_test.sh / solana -V / rustc -V / process_projects "beta"
  .../7cc2784f-c3b9-4820-9ba4-893e11dec469.sh: line 2: solana: command not found
  error Process completed with exit code 127

setup-solana 5.9 does not resolve the `beta` channel, so the install
fails in 14 ms, and it clears the stable install on its way out. The
step after it then dies on `solana -V` before reaching
`process_projects`, so no project is ever built or tested. Both steps
carry continue-on-error, which reports a failed step as success, so this
looked green on every run. They are removed rather than repaired:
`process_projects` uses its argument only as a log label, so the beta
leg could never have tested anything the stable leg did not.

anchor.yml and anchor-v1.yml keep their install step and lose two stale
claims in the comment above it - a pointer to native.yml's beta notes,
which this commit deletes, and "LiteSVM 0.18.1 resolves solana-* at ~4.3
(see the pins added in 3134c69)", which #218 undid by raising the floor
to 0.18.2 and deleting those pins. solana-asm.yml's sbpf note loses the
same 0.18.1.

The `process_projects "stable"` label and the "with Stable" step names
are left alone: nothing now contrasts with them, but renaming reaches
into the build script in four files for no behavioural gain.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YTTjefTz2Kbj8t5qg77kXg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants